<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>作品列表——图片列表</title>
<link href="../style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/common.js"></script>
<script src="../js/artDialog.js?skin=gray"></script>
<script src="../js/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>
<script type="text/javascript">

$(function(){
	$("a[name='addPaintingHref']").click(function(){
		art.dialog.open('${ctx }/painting/addPrepare.do',{title:'添加作品',width:820,lock:true},false);
    });
    
	m2('m1_002','m1_002_02');
});

function showNextPagePic(flag){

	var totalPages = document.getElementById("totalPages_Hidden").value;
	var cur_No = document.getElementById("curPage").value;
	
	if(totalPages == "" || cur_No == ""){
		return ;
	}
	if(flag>0){
		cur_No = parseInt(cur_No) + 1;
		var total_len = '${fn:length(page.result)}';
		if(parseInt(total_len) == 8){
			if(cur_No <= parseInt(totalPages)+1){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
		else if(parseInt(total_len) < 8){
			if(cur_No <= parseInt(totalPages)){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
	}else{
		cur_No = parseInt(cur_No) - 1;
		if(cur_No > 0 ){
			document.getElementById("curPage").value = cur_No;
		}else{
			cur_No = 1;
		}
	}
	
	var x = document.forms[0];
	x.submit();
}
</script>
</head>
<body>

<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<form method="post" action="${ctx }/painting/paintingAction!listNewestPainting.do" id="listPaintingForm" name ="listPaintingForm" style="margin: 0">

<%@ include file="/member/list_painting_fragment.jsp" %>

</form>

<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>